package com.aiiter.web.controller.house;

import com.aiiter.common.core.domain.AjaxResult;
import com.aiiter.house.service.HouseAppIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/house/appindex")
public class HouseAppIndexController {

    @Autowired
    HouseAppIndexService houseAppIndexService;
    @GetMapping("/statistics")
    public AjaxResult statistics(){
        return AjaxResult.success(houseAppIndexService.getHomeStatistics());
    }


}
